/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.farent.solutions.plugins.stripes.hyperstripes.core;

/**
 *
 * @author frenio
 */
public enum FormMode
{
    EDIT,
    VIEW,
    UPDATE;

    public static FormMode parse( String mode )
    {
        for (FormMode formMode : FormMode.values()) {
            if(formMode.name().equalsIgnoreCase(mode))
                return formMode;
        }
        return EDIT;
    }
}
